sum=0
for i in range(3):
    sum+=int(input())
print("{},{:.2f}".format(sum,sum/3))
print(f"{sum},{sum/3:.2f}")
